home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / AppleEvents / Records / AEStruct.cp < prev    next >
Text File  |  2000-06-23  |  357b  |  23 lines

  1. // AEStruct.cp
  2.  
  3. #ifndef AEStruct_h
  4. #include "AEStruct.h"
  5. #endif
  6. #ifndef OSError_h
  7. #include "OSError.h"
  8. #endif
  9.  
  10. AEStruct::AEStruct()
  11.   {
  12.     ThrowOSError( AECreateList( 0, 0, true, this ) );
  13.   }
  14.  
  15. uint32 AEStruct::Length() const
  16.   {
  17.     Assert( !IsNull() );
  18.     int32 length;
  19.     ThrowOSError( AECountItems( this, &length ) );
  20.     Assert( length >= 0 );
  21.     return length;
  22.   }
  23.